<!DOCTYPE html>
<html>
<head>
	<title>教师管理系统-友创网络</title>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <link rel="stylesheet" type="text/css" href="{{asset('/layui/css/layui.css')}}">
	<link rel="stylesheet" type="text/css" href="{{asset('/layui/css/style.css')}}">
  <link rel="shortcut icon" href="{{asset('/favicon.ico')}}" />
  <link rel="bookmark" href="{{asset('/favicon.ico')}}" type="image/x-icon"　/>
  
  <script type="text/javascript" src="{{asset('/layui/layui.js')}}"></script>
	<script type="text/javascript" src="{{asset('/layui/lay/modules/jquery.min.js')}}"></script>
</head>
<body style="background-color: #2c2e2f">
	<div class="login_bg">
    <div class="login_title"><font style="color:#fff">Teach</font><font>er</font>&nbsp;&nbsp; log in</div>
    <p>尊敬的老师 , 欢迎来到管理登录页面！</p>
    <div class="layui-form-item">
    <form method="post" action="{{ route('login') }}">
    {{ csrf_field() }}
    <div class="layui-inline">
      <div class="layui-input-block layui-m-l-0">
        <input type="text" name="username" autocomplete="off" placeholder="账号：Username" value="{{ old('username') }}" class="layui-inputv layui-login-input">
      </div>
      <div class="layui-input-block layui-m-l-0">
        <input type="password" name="password" autocomplete="off" placeholder="密码：Password" class="layui-inputv layui-login-input">
      </div>
      <div class="layui-input-block layui-m-l-0"><input type="text" name="code" autocomplete="off" placeholder="验证码：Code" class="layui-inputv layui-login-input layui-yzm-input"><img class="layui-yzm-input-img" src="{{captcha_src('inverse')}}" height="35px" width="100px" alt="验证码"></div>
      <div class="layui-input-block layui-m-l-0"><button type="submit" class="layui-login-input layui-login-b-l"><i class="layui-icon" style="font-size: 14px; margin-right: 8px;">&#x1005;</i>登录 / Login</button></div>
    </div>
    </div>
    </form>
    <p><a href="#">忘记密码？</a></p>

  </div>
</body>
<script>
//使用layui信息模块
layui.use(['layer'], function(){
  var layer = layui.layer;

  //错误提示
  @if($errors->has('username'))
  layer.msg("{{ $errors->first('username') }}");
  @elseif($errors->has('password'))
  layer.msg("{{ $errors->first('password') }}");
  @elseif($errors->has('code'))
  layer.msg("{{ $errors->first('code') }}");
  @endif

});



//enter键按下去
$(document).ready(function(){ 
   $("input").keydown(function(e){ 
      if(e.keyCode==13){ 
        $('button').click();
      }
   });
});

</script> 
</script>
</html>